package com.lzj.demo.design.chain;

import com.lzj.demo.design.common.ServerResult;
import com.lzj.demo.design.common.ServerResultCode;
import com.lzj.demo.design.vo.OrderQueryVO;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;


/**
 *  安全校验对象
 */
@Component
@Order//校验顺序排第4
public class CheckSecurityFilterObject extends AbstractHandler {
    @Override
    ServerResult doFilter(OrderQueryVO filterRequest, ServerResult response) {
        //invoke Security check
        System.out.println("安全调用校验");
        response.setResult(ServerResultCode.SUCCESS);
        return response;
    }
}
